#include "HkpWorldCinfo.h"

namespace Havok
{
	namespace Dynamics
	{
		HkpWorldCinfo::HkpWorldCinfo()
		{
			//m_native = new HkpWorldInfoNative();
			m_worldCinfo = new hkpWorldCinfo();
		}

		void HkpWorldCinfo::SimulationType::set(HkpSimulationType value)
		{
			m_worldCinfo->m_simulationType = (hkpWorldCinfo::SimulationType)value;
		}

		void HkpWorldCinfo::SolverType::set(HkpSolverType value)
		{
			m_worldCinfo->setupSolverInfo((hkpWorldCinfo::SolverType)value);
		}

		void HkpWorldCinfo::Gravity::set(Vector3 value)
		{
			m_worldCinfo->m_gravity.set(value.X, value.Y, value.Z);
		}

		void HkpWorldCinfo::CollisionTolerance::set(float value)
		{
			m_worldCinfo->m_collisionTolerance = value;
		}
	}
}

